package com.cec.mapper.admin;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cec.entity.Oldster;
import com.cec.vo.OldsterStatusVO;
import com.cec.vo.OldsterVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 老人信息表 Mapper 接口
 * </p>
 *
 * @author lt
 * @since 2024-10-25
 */
@Mapper
public interface OldsterMapper extends BaseMapper<Oldster> {

    @Select("select id,status_name statusName from oldster_status")
    List<OldsterStatusVO> getOldsterStatus();

    IPage<OldsterVO> queryPageOldster(Page<Oldster> page,@Param(Constants.WRAPPER) QueryWrapper<Oldster> wrapper);
}
